//
//  User.swift
//  sinaWeiBo
//
//  Created by smartlei on 15/10/19.
//  Copyright © 2015年 smartlei. All rights reserved.
//

import UIKit

class User: NSObject {

    /// 用户UID
    var id: Int = 0
    /// 用户昵称
    var screen_name: String?
    /// 用户头像地址（中图），50×50像素
    var avatar_hd: String?
    /// 认证类型，-1：没有认证，0，认证用户，2,3,5: 企业认证，220: 达人
    var verified_type: Int = 0
    /// 会员等级 0-6
    var mbrank: Int = 0

    
    //重写打印方法
    override var description: String {
        
        let dict = ["id","screen_name","profile_image_url"]
        
        return dictionaryWithValuesForKeys(dict).description
    }
    
    
    //字典转模型
    init(dict: [String: AnyObject]){
        
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    
    
    
}
